package com.jy.admins.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jy.common.annotation.Excel;
import com.jy.common.core.domain.BaseEntity;

/**
 * 图书馆管理员对象 admins
 * 
 * @author ruoyi
 * @date 2025-05-30
 */
public class Admins extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 管理员ID，唯一标识一个管理员 */
    @Excel(name = "管理员ID，唯一标识一个管理员")
    private Long adminId;

    /** 管理员用户名 */
    @Excel(name = "管理员用户名")
    private String username;

    /** 管理员电子邮箱 */
    @Excel(name = "管理员电子邮箱")
    private String email;

    /** 管理员角色 */
    @Excel(name = "管理员角色")
    private String role;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 最后登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastLogin;

    public void setAdminId(Long adminId) 
    {
        this.adminId = adminId;
    }

    public Long getAdminId() 
    {
        return adminId;
    }

    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }

    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }

    public void setRole(String role) 
    {
        this.role = role;
    }

    public String getRole() 
    {
        return role;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setLastLogin(Date lastLogin) 
    {
        this.lastLogin = lastLogin;
    }

    public Date getLastLogin() 
    {
        return lastLogin;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("adminId", getAdminId())
            .append("username", getUsername())
            .append("email", getEmail())
            .append("role", getRole())
            .append("createdAt", getCreatedAt())
            .append("lastLogin", getLastLogin())
            .toString();
    }
}
